﻿using MengLin.OOP.DesignPattern.State.OrderManager.Entity;
using MengLin.OOP.DesignPattern.State.RoomManagerSys.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.State.OrderManager.Implements
{
    /// <summary>
    /// 已经收货状态
    /// </summary>
    public class AlreadyReceiveGoodsState : AbstractOrderState
    {
        /// <summary>
        /// 得到订单的状态
        /// </summary>
        /// <returns></returns>
        public override string GetState()
        {
            return "当前订单状态是已收货状态";
        }

        /// <summary>
        /// 发货
        /// </summary>
        /// <param name="room"></param>
        public override void SendGoods(Order order)
        {
            Console.WriteLine("当前为已收货状态，无法进行发货操作");
        }

        /// <summary>
        /// 付款
        /// </summary>
        /// <param name="room"></param>
        public override void Payment(Order order)
        {
            Console.WriteLine("当前为已收货状态，无法进行付款操作");
        }

        /// <summary>
        /// 收货
        /// </summary>
        /// <param name="room"></param>
        public override void ReceiveGoods(Order order)
        {
            Console.WriteLine("当前为已收货状态，无法进行收货操作");
        }
    }
}
